package cn.tannn.ops.pwd.controller.vo;


/**
 * RES 密钥队
 *
 * @author tnnn
 * @version V1.0
 * @date 2023-02-20 16:23
 */
public class RSAKey {

    /**
     * 公钥key - 加密用的 secret
     */
    String publicKey;

    /**
     * 私钥key - -解密用的 secret(用户要记住)
     */
    String privateKey;


    public RSAKey(String publicKey, String privateKey) {
        this.publicKey = publicKey;
        this.privateKey = privateKey;
    }

    @Override
    public String toString() {
        return "RSAKey{" +
                "publicKey='" + publicKey + '\'' +
                ", privateKey='" + privateKey + '\'' +
                '}';
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }
}
